/**
 * Created by XK-SH on 2017/7/3.
 */
import Vue from 'vue'
import VueResource from 'vue-resource';
Vue.use(VueResource);

export default {
  /**
   * 出入登记分页查询
   */
  getTableData(pageSize,pageNum,queryData){
    return Vue.http.post("/cscEntry/m/entrys/" + pageSize + "/" + pageNum,queryData);
  },
  /**
   * 根据姓名获取会员详细信息
   */
  getAllMemberInfor(name) {
    return Vue.http.post("/member/m/v1/getMemberListByMemberName" , name);
  },
  getAllEmInfor(type){
    return Vue.http.post("/member/m/v1/getAllEmps",type);
  },
  /**
   * 根据EntryId获取会员信息
   */
  getMemberByEntryId(entryId) {
    return Vue.http.get("/cscEntry/m/entry/" + entryId);
  },
  /**
   * 提交出入申请表单
   */
  entry(val) {
    return Vue.http.post("/cscEntry/m/entry",val);
  },
  /**
   * 返院
   */
  entryBack(val) {
    return Vue.http.post("/cscEntry/m/entryBack",val);
  },

}
